<template>
  <div>
    <div class="p-5px mt-6px">cc</div>
    <span class="test" @click="setLastName">aaa</span>
  </div>
</template>

<script setup lang="ts">
import { useCounterStore } from '@/stores/counter'

const useCount = useCounterStore()
function setLastName() {
  useCount.setLastName('lishi')
}
</script>

<style scoped lang="scss">
.test {
  font-size: 20px;
}
</style>
